<?php
//写入文件
include_once "PDO.class.php";
//指向DB
$mysql = new Db();
//接值
$arr['work']=$_GET['work'];
$arr['address']=$_GET['address'];
$arr['money']=$_GET['money'];
$arr['job']=$_GET['job'];
$arr['id']=$_GET['id'];
//print_r($arr);die;
$query = $mysql->do_upd('works',$arr);
if($query){
    header("location:list.php");
}else{0
    header("location:list.php");
}
?>